package org.example.packagea.aoplearn;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Juice {
    private List<Farmer> farmerList = new ArrayList<>();

    public void add(Farmer farmer){
        //这里的this如果是子类调用这里this是AppleJuice
        this.farmerList.add(farmer);
    }




}
